package com.xinzhi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分销佣金记录表
 * </p>
 *
 * @author laohan
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BrokerageRecords对象", description="分销佣金记录表")
public class BrokerageRecords implements Serializable {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String uuid;

    @ApiModelProperty(value = "得到佣金的用户的id")
    private Integer userId;

    @ApiModelProperty(value = "下订单的用户")
    private Integer orderUserId;

    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    @ApiModelProperty(value = "订单编号")
    private String orderNumber;

    @ApiModelProperty(value = "订单sku id")
    private Integer orderSkuId;

    @ApiModelProperty(value = "佣金（人民币)")
    private Integer money;

    @ApiModelProperty(value = "佣金(积分)")
    private Integer score;

    @ApiModelProperty(value = "佣金率(人民币)")
    private Double moneyRatio;

    @ApiModelProperty(value = "佣金率(积分)")
    private Double scoreRatio;

    @ApiModelProperty(value = "上限(人民币)")
    private Integer moneyLimit;

    @ApiModelProperty(value = "上限(积分)")
    private Integer scoreLimit;

    @ApiModelProperty(value = "中间间隔人数 0为直接邀请 1为间接隔1人")
    private Integer inviteLevel;

    @ApiModelProperty(value = "活动id，盲盒id、一番赏id、抽奖id、扭蛋机id")
    private Integer activityId;

    @ApiModelProperty(value = "对应活动类型, seckill groupon 等")
    private String activityType;

    @ApiModelProperty(value = "活动uuid")
    private String activityUuid;

    @ApiModelProperty(value = "活动id，盲盒id、一番赏id、抽奖id、扭蛋机id")
    private Integer nodeId;

    @ApiModelProperty(value = "对应实体类型,  product box yifanshang lottery egg_lottery")
    private String nodeType;

    @ApiModelProperty(value = "活动uuid")
    private String nodeUuid;

    @ApiModelProperty(value = "佣金(积分)")
    private String orderType;

    @ApiModelProperty(value = "订单支付时间")
    private Date orderPaidAt;

    @ApiModelProperty(value = "佣金发放时间")
    private Date completedAt;

    @ApiModelProperty(value = "0待订单完成, 1已发放收益, 2为订单取消")
    private Integer status;

    private Date deletedAt;

    private Date createdAt;

    private Date updatedAt;

    @ApiModelProperty(value = "direct直接上级佣金   indirect间接上级佣金   leader团队长佣金销")
    private String brokerageType;


}
